#!/bin/bash

mutil_gpu=0

# 进入脚本所在目录
cd "$(dirname "$0")"

# 激活虚拟环境
source venv/bin/activate

# 设置环境变量
export HF_HOME="./huggingface"
export XFORMERS_FORCE_DISABLE_TRITON="1"
export PYTHONPATH="$PWD"

launch_script="gradio_animate"

if [ "$mutil_gpu" -eq 1 ]; then
    launch_script+="_dist"
fi

HF_ENDPOINT=https://hf-mirror.com python "demo/${launch_script}.py"
